<div class="mt20">
    <table width="100%">
        <tr>
            <td width="135" align="right" class="form-cell" valign="top"><span class="c-red">* </span>楼盘名称：</td>
            <td class="cell-split-s"><input type="text" id="building_name" class="input-text fl mr10" value="" style="width:400px" maxlength="15"><p class="c-gray lh30">最多15个汉字</p>
                <p class="c-red lh30 none">请填写楼盘名称</p></td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top"><span class="c-red">* </span>楼盘图片：</td>
            <td class="cell-split">
                <div id="fileupload" class="fileinput-button fl">
                    <div class="upload-wrap" id="img_wrap">
                        <div class="upload-btn"><i class="upload-icon"></i></div>
                        <!-- 上传的图片显示在这里 -->
                        <!-- <img src="../images/pic/ad.jpg" alt="">  -->
                    </div>
                    <input type="file" name="file" accept="image/*" />
                    <div class="fl lh30 mt20">
                        <p class="c-gray f12">建议尺寸：610*320像素</p>
                        <span class="c-blue f12">上传图片</span>
                    </div>
                </div>
                <input type="hidden" id="building_img" value="" />
                <p class="c-red lh30 none js-err" style="clear:both;"></p>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top"><span class="c-red">* </span>上下架状态：</td>
            <td class="cell-split">
                <div style="padding-top:5px">
                    <div class="radio fl" style="margin-right:50px">
                        <input type="radio" id="rbt_online" name="line_state" checked="checked">
                        <label for="rbt_online">上架</label>
                    </div>
                    <div class="radio fl">
                        <input type="radio" id="rbt_offline" name="line_state">
                        <label for="rbt_offline">下架</label>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top">服务专员姓名：</td>
            <td class="cell-split">
                <input type="text" id="admin_name" class="input-text fl mr10" value="" style="width:400px" maxlength="10"><p class="c-gray lh30">最多10个汉字</p>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top"><span class="c-red">* </span>服务专员电话：</td>
            <td class="cell-split"><input type="text" id="admin_tel" class="input-text fl mr10" value="" style="width:400px">
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top"><span class="c-red">* </span>楼盘状态：</td>
            <td class="cell-split">
                <div class="fl select" style="width:400px;" id="ddl_status">
                    <span class="select-border js-select">
                        <input class="select-text" type="text" readonly placeholder="" />
                        <span class="select-icon"><i class="select-icon-arrow"></i></span>
                    </span>
                    <div class="select-sub"></div>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top">显示新楼盘标识：</td>
            <td class="cell-split">
                <div class="switch switch-on" style="margin-top:3px" id="new_building">
                    <span class="switch-text">开</span>
                    <span class="switch-white"></span>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top">显示合作经纪人数目：</td>
            <td class="cell-split">
                <div class="switch switch-off fl" style="margin-top:3px" id="display_broker">
                    <span class="switch-text">关</span>
                    <span class="switch-white"></span>
                </div>
                <span style="color:#A0A0A0;margin-left:15px;padding:5px 0px;display:inline-block;">(当前合作经纪人数量：<span id="broker_count">0</span> )</span>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top">显示意向客户数目：</td>
            <td class="cell-split clearfix">
                <div class="switch switch-off fl" style="margin-top:3px" id="intent_cst">
                    <span class="switch-text">关</span>
                    <span class="switch-white"></span>
                </div>
                <span style="color:#A0A0A0;margin-left:15px;padding:5px 0px;display:inline-block;">(当前意向客户数量：<span id="intent_cst_count">0</span> )</span>
            </td>
        </tr>

        <tr>
            <td align="right" class="form-cell" valign="top">楼盘均价：</td>
            <td class="cell-split"><input type="text" id="price" class="input-text fl mr10" value="" style="width:400px">
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top">激励信息：</td>
            <td class="cell-split"><input type="text" id="excitation_info" class="input-text fl mr10" value="" style="width:400px">
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top">佣金信息：</td>
            <td class="cell-split"><input type="text" id="commission_info" class="input-text fl mr10" value="" style="width:400px">
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top"><span class="c-red">* </span>楼盘地址：</td>
            <td class="cell-split"><input type="text" id="address" class="input-text fl mr10" value="" style="width:400px">
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell" valign="top">楼盘地图：</td>
            <td class="cell-split">
                <span class="fl" style="width:212px">纬度 <input type="text" id="latitude" class="input-text" value="" style="width:160px" readonly></span>
                <span class="fl" style="width:200px">经度 <input type="text" id="longitude" class="input-text" value="" style="width:160px" readonly></span>
                <span id="sel_location" class="c-blue lh30 cursor">在地图中查看/设置</span>
            </td>
        </tr>
    </table>
</div>

<div class="tab-sm f14 mt25 clearfix">
    <ul id="tabEditor">
        <li class="tab-sm-on"><a href="javascript:;">合作规则</a></li>
        <li><a href="javascript:;">现场优惠</a></li>
        <li><a href="javascript:;">楼盘卖点</a></li>
        <li><a href="javascript:;">目标客户</a></li>
        <li><a href="javascript:;">拓客技巧</a></li>
        <li><a href="javascript:;">支持</a></li>
    </ul>
    <div class="tab-sm-bottom-line"></div>
</div>

<div class="tab-sm-con mt15 border" style="height:185px;margin-bottom: 10px;border:none;">
    <div id="tabSmCon1" style="display:block">
        <div id="ed_cooperation_rules"  class="editor"></div>
    </div>
    <div id="tabSmCon2" style="display:none">
        <div id="ed_preferential"  class="editor"></div>
    </div>
    <div id="tabSmCon3" style="display:none">
        <div id="ed_selling_points" class="editor"></div>
    </div>
    <div id="tabSmCon4" style="display:none">
        <div id="ed_target_customer" class="editor"></div>
    </div>
    <div id="tabSmCon5" style="display:none">
        <div id="ed_talk_skills"  class="editor"></div>
    </div>
    <div id="tabSmCon6" style="display:none">
        <div id="ed_support" class="editor"></div>
    </div>
</div>
<a href="javascript:;" class="fr mt15 btn permission p-500309-10" id="btn_save">保存</a>
<script type="text/javascript">
    seajs.use(["jquery","service/config/building_detail"], function ($,building_detail){
        $(function(){
            building_detail.init();
        });
    });
</script>
